package com.gxuwz.eschool.fragment;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.gxuwz.eschool.ChangePasswordActivity;
import com.gxuwz.eschool.DetailedQueryActivity;
import com.gxuwz.eschool.MessageForSystem;
import com.gxuwz.eschool.R;
import com.gxuwz.eschool.SettingActivity;
import com.gxuwz.eschool.UtilityBillPaymentActivity;
//我的
public class PersonFragment extends Fragment {

    private Button btn_detailed;
    private Button btn_setting;


    public PersonFragment() {

    }


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        View rootView = inflater.inflate(R.layout.fragment_person, container, false);

        // 初始化RelativeLayout并设置点击监听器
        btn_detailed = rootView.findViewById(R.id.btn_detailed);
        btn_detailed.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), DetailedQueryActivity.class);
                startActivity(intent);
            }
        });

        btn_setting = rootView.findViewById(R.id.btn_setting);
        btn_setting.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getActivity(), SettingActivity.class);
                startActivity(intent);
            }
        });

        return rootView;
    }
}